﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="paperscorelist.aspx.cs" Inherits="OnlineTestUI.paperscorelist" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <f:PageManager ID="PageManager1" AutoSizePanelID="GridPaper" runat="server"></f:PageManager>
            <f:Grid ID="GridPaper" Title="表格" EnableFrame="true"  Width="100%" PageSize="5" ShowBorder="true" ShowHeader="true"
                AllowPaging="true" runat="server" 
                DataKeyNames="id" IsDatabasePaging="true" OnPageIndexChange="GridPaper_PageIndexChange"
                AllowSorting="true" SortField="papername" SortDirection="ASC"
                OnSort="GridPaper_Sort">
                <Columns>
                    <f:RowNumberField />
                    <f:BoundField Width="100px" DataField="papername" SortField="papername" DataFormatString="{0}"
                        HeaderText="试卷名" />
                    <f:TemplateField Width="80px" HeaderText="分数"  SortField="score">
                    <ItemTemplate>
                        <%# Eval("score") is DBNull?"暂无分数":Eval("score")%>
                        
                        
                    </ItemTemplate>
                </f:TemplateField>
                    
                    <f:BoundField Width="100px" DataField="testtime" SortField="testtime" DataFormatString="{0}"
                        HeaderText="考试时间" />
                    
                    <f:TemplateField Width="80px" HeaderText="查看试卷详细">
                    <ItemTemplate>
                        
                        <a href="paperview.aspx?paperid=<%#Eval("paperid")%> &studentid= <%#Eval("studentid")%>">试卷详细</a>
                        
                    </ItemTemplate>
                </f:TemplateField>
                </Columns>
            </f:Grid>
            <br />
        </div>
    </form>
</body>
</html>
